#include<iostream >
using namespace std;
class Date
{
public:
	Date()
	{
		_year = 1;
		_month = 1;
		_day = 1;
	}
	Date(Date& d)
	{

	}
	Date(int year, int month, int day)
	{
		_year = year;
		_month = month;
		_day = day;
	}
	void print()
	{
		cout << _year << endl;
		cout << _month << endl;
		cout << _day << endl;
	}
	void fun()
	{
		cout << this << endl;
	}
private:
	int _year;
	int _month;
	int _day;
};

bool operator==(const Date& d1, const Date& d2)
{
	return d1._year == d2._year
		&& d1._month == d2._month
		&& d1._day == d2._day;
}

class stack
{
public:
	stack()
	{
		_a = nullptr;
		_capacity = 0;
		_top = 0;
	}
	~stack()
	{
		free(_a);
		_a = nullptr;
	}
private:
	int * _a;
	int _capacity;
	int _top;
};




void test1()
{
	Date d1;
	d1.print();
}
int main()
{
	test1();
	return 0;
}